package com.wm.ad_navi_new.presenter

import com.wm.ad_navi_new.contract.SettingContract
import com.wm.ad_navi_new.model.SettingModel

class SettingPresenter : SettingContract.ISettingPresenter {

    private var view: SettingContract.ISettingView?

    private var model: SettingContract.ISettingModel

    constructor(settingView: SettingContract.ISettingView) {
        this.view = settingView
        this.model = SettingModel()
    }


    override fun onLoadData() {
        view?.showLoading()
        model.getData()
    }

    override fun onViewDestroy() {
        view = null // 清理对View的引用
    }

}